import java.util.ArrayList;
import java.util.Iterator;

/**
 * @author 35326
 * 2021/3/22 19:38
 * 测试并发修改异常
 */
public class CommonTest {
	public static void main(String[] args) {
		ArrayList<String> arrayList = new ArrayList<>();
		arrayList.add("1");
		arrayList.add("2");
		arrayList.add("3");

		Iterator<String> iterator = arrayList.iterator();

		System.out.println(iterator.next());
		arrayList.add("2");
		iterator.next();

	}
}
